<template>
  <div class="order-checked-main">
    <div class="header-main">
      <span class="left-icon" @click="goBack"><van-icon name="arrow-left" /></span>
      <div class="center">提现</div>
      <span class="icon-right" @click="$router.push('/withdrawRecode')">记录</span>
    </div>
    <div class="list-box">
      <el-form ref="form" :model="form">
        <el-form-item label="取款方式">
          <el-select style="width: 100%;" v-model="form.region" placeholder="请选择取款方式">
            <el-option label="BTU" value="shanghai"></el-option>
            <el-option label="USDT" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="币种">
          <el-select style="width: 100%;margin-top: -20px" v-model="form.region" placeholder="请选择币种">
            <el-option label="BTU" value="shanghai"></el-option>
            <el-option label="USDT" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item style="margin-top: -20px" label="区块链网络">
          <div class="network">
            <div class="box active">
              OMNI
              <div class="checked"><van-icon class="font" style="" name="success" /></div>
            </div>
          </div>
        </el-form-item>
        <el-form-item style="margin-top: -20px"  label="地址">
            <el-input v-model="form.name" placeholder="请输入地址"></el-input>
        </el-form-item>
        <el-form-item style="margin-top: -20px"  label="金额">
          <el-input v-model="form.name" placeholder="请输入金额"></el-input>
          <p class="font-blance">当前余额：100USDT≈50BTN</p>
          <p class="active-font">
            <span>实际到账：100</span>
            <span>手续费：100</span>
          </p>
        </el-form-item>
        <el-form-item>
          <van-button type="warning" block>提交</van-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
export default {
  name: "index",
  data(){
    return{
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      }
    }
  },
  methods:{
    goBack(){
      this.$router.go(-1)
    },
    onSubmit() {
      console.log('submit!');
    }
  }
}
</script>

<style scoped lang="scss">
.order-checked-main {
  width: 100%;
  background: #ffffff;
  min-height: 100vh;

  .header-main {
    width: 100%;
    height: 45px;
    padding: 15px 0 0 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #fff;

    .left-icon {
      position: absolute;
      left: 20px;
    }

    .center {
      width: 100%;
      height: 45px;
      text-align: center;
      line-height: 45px;
      font-size: 15px;
    }
    .icon-right{
      position: absolute;
      right: 20px !important;
      font-size: 12px;
      color: #aaaaaa;
    }
  }
  .list-box{
    width: 100%;
    padding: 5%;
    box-sizing: border-box;
  }
  .network{
    width: 100%;
    margin-top: 40px;

    .box{
      width: 120px;
      position: relative;
      text-align: center;
      line-height: 40px;
      font-size: 14px;
      height: 40px;
      border: 1px solid #f6f6f6;
      .checked{
        position: absolute;
        width: 30px;
        color: #fff;
        height: 20px;
        right: 0;
        bottom: 0;
        font-size: 14px;
        box-sizing: border-box;
        background: linear-gradient(315deg, #f89220,#f89220 50%,  transparent 0,transparent 50%);
        .font{
          position: absolute;
          top: 5px;
          right: 1px;
        }
      }
    }
    .active{
      border: 1px solid #f89220;
      border-radius: 5px;
    }

  }
  .font-blance{
    font-size: 12px;
    color: #79c642;
  }
  .active-font{
    margin-top: -20px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    span:nth-child(1){
      color: #aaaaaa;
    }
    span:nth-child(2){
      color: #f89220;
    }
  }
}
</style>
